package com.quyeying.mapper;

import com.quyeying.entity.TblOrderBaseEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quyeying.entity.vo.ExportWaitShipOrderVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单基础信息表 Mapper 接口
 * </p>
 *
 * @author skx
 * @since 2022-07-19
 */
public interface TblOrderBaseDao extends BaseMapper<TblOrderBaseEntity> {

    /**
     * 查询需要导出的代发货订单
     * @return
     */
    List<ExportWaitShipOrderVo> getWaitShipOrderData(@Param("id") Long id, @Param("reqParam") Map<String, Object> reqParam);

    Integer getUnreadNum(long userId);

    BigDecimal getOrderReceiveMoney(Long id);

    List<Map<String, Object>> selectReceiveByIdList(Long id);
}
